import request from '@/utils/request'

// 查询规格值列表
export function listValues(query) {
  return request({
    url: '/procurementmanagement/values/list',
    method: 'get',
    params: query
  })
}

// 查询规格值详细
export function getValues(specValueId) {
  return request({
    url: '/procurementmanagement/values/' + specValueId,
    method: 'get'
  })
}

// 新增规格值
export function addValues(data) {
  return request({
    url: '/procurementmanagement/values',
    method: 'post',
    data: data
  })
}

// 修改规格值
export function updateValues(data) {
  return request({
    url: '/procurementmanagement/values',
    method: 'put',
    data: data
  })
}

// 删除规格值
export function delValues(specValueId) {
  return request({
    url: '/procurementmanagement/values/' + specValueId,
    method: 'delete'
  })
}
